/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.pagoxusuario.entidades;


import java.io.Serializable;
import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;


@Entity
@Cacheable
public class PagoxUsuario implements Serializable {
	
	private static final long serialVersionUID = -2662121846406869911L;
    public static String LISTAR_DESTACADOS;

    
	@Id @GeneratedValue
	private Long id;
	@NotNull(message="La descripcion del PagoxUsuario no puede ser nulo")
	private Integer importe;
	private Integer igv;
	@ManyToOne
	private PagoxUsuario pago;
	        
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

    public Integer getImporte() {
        return importe;
    }

    public void setImporte(Integer importe) {
        this.importe = importe;
    }

    public Integer getIgv() {
        return igv;
    }

    public void setIgv(Integer igv) {
        this.igv = igv;
    }

           
        
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

    }

/*  @Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof Pago))
			return false;
		Pago other = (Pago) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
} */

	
